package com.example.springai.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 聊天页面视图控制器
 *
 * @author ZWX
 */
@Controller
@RequestMapping
public class WebController {

    /**
     * 显示聊天页面
     */
    @GetMapping("/chat")
    public String chatPage() {
        return "chat";
    }

    /**
     * 显示文档列表页面
     */
    @GetMapping("/knowledge-base")
    public String documentsPage() {
        return "knowledge-base";
    }
}